Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster compilation time #97

Merged
merged 6 commits into from
Feb 22, 2021

Conversation

hyrodium
Copy link
Collaborator

Faster Compilation Time (gaussjacobi and gausshermite)

Removing @. macro makes faster and readable code.
related: #47

t=time(); FastGaussQuadrature.jacobi_asy(101,1., 1.); time() - t

On current master (tried 3 times):
5.6319661140441895
5.672187805175781
5.6497509479522705

With this PR (tried 3 times):
5.377803087234497
5.1646201610565186
5.101907014846802

t=time(); gausshermite(101); time() - t

On current master (tried 3 times):
5.864084005355835
5.775697946548462
5.807419061660767

With this PR (tried 3 times):
4.963570833206177
4.937578916549683
4.9188759326934814

Fix AIRY_ROOTS

Previously, there was two definitions of airy_roots in the code, and one of them is not correct.

I've fixed this.

Other

  • minor refactorings
  • use CAPITAL_CASE for global constants
  • fix typo in document
  • add more doctests

@hyrodium hyrodium requested a review from dlfivefifty February 21, 2021 14:12
@codecov
Copy link

codecov bot commented Feb 21, 2021

Codecov Report

Merging #97 (8fb6527) into master (7740d0a) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
- Coverage   97.05%   97.04%   -0.02%     
==========================================
  Files           9        9              
  Lines        1156     1149       -7     
==========================================
- Hits         1122     1115       -7     
  Misses         34       34              
Impacted Files Coverage Δ
src/besselroots.jl 96.06% <100.00%> (ø)
src/gausshermite.jl 100.00% <100.00%> (ø)
src/gaussjacobi.jl 99.25% <100.00%> (-0.02%) ⬇️
src/gausslaguerre.jl 92.93% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7740d0a...c1a7466. Read the comment docs.

@hyrodium hyrodium merged commit dd1f2fe into JuliaApproximation:master Feb 22, 2021
@hyrodium hyrodium mentioned this pull request Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants